package com.zb.vo;

import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author WEN
 * @Date 2024/4/3 0003
 **/
@Data
@ApiModel("网点邀请码发送记录")
public class NetworkInviteCodeSendLogVo {

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "发送人")
    private String sendUsername;

    @ApiModelProperty(value = "接收者手机号")
    private String receivePhone;

    @ApiModelProperty(value = "发送内容")
    private String content;

    @ApiModelProperty(value = "发送失败内容")
    private String error;

    public NetworkInviteCodeSendLogVo(Long custAccId, String sendUsername, String receivePhone, String content) {
        this.id = IdWorker.getId();
        this.custAccId = custAccId;
        this.sendUsername = sendUsername;
        this.receivePhone = receivePhone;
        this.content = content;
        this.error = "";
    }

    public NetworkInviteCodeSendLogVo(Long custAccId, String sendUsername, String receivePhone, String content, String error) {
        this.id = IdWorker.getId();
        this.custAccId = custAccId;
        this.sendUsername = sendUsername;
        this.receivePhone = receivePhone;
        this.content = content;
        this.error = error;
    }
}
